Skip to content

docs(adr): ADR-0150 records the ruling on a knowledge source registered in code and on how code names a package's source - #37576

Draft
objectstack-fleet[bot] wants to merge 2 commits into
mainfrom
claude/project-thread-2ly8ve
Draft

objectstack-fleet[bot] wants to merge 2 commits into
mainfrom
claude/project-thread-2ly8ve

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread

Fixes #37545

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:用户无感。只是在「行为类元数据按应用包寻址」这份架构决策记录里,把你今天对知识源两个问题的决定各记了一行,文首状态补了一句修订说明;另在「知识平台边界」那份记录里加了一行指向,原先那里写着「未决」。
  • 为什么做:属于「知识检索平台化」专题。决定原先只在卡片评论里,记录里这几处还写着「未决」,后面做知识功能的人和 AI 查不到依据。
  • 出错会怎样:纯文字改动,不动任何代码和行为;记错了撤回这两个提交即可。
  • 要你做什么:核对这几行记录与你的原话一致,然后批准合并(架构决策记录需要你亲自放行)。

What changes

Two files under docs/adr/, four hunks, +5 / -1.

In 0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md (the knowledge_source addendum of 2026-11-25):

  1. Under point 4 of "Past the ruling's words": one dated amendment note. It says the last part of the point is ruled A, quotes the maintainer's word 「两处都选 A」 (12:26Z) with the decision card's question and option text, quotes the ruling record's statement of A for this point, and cites seat record 7192063608 on knowledge_source: admit the governed metadata type with its loader — registry, stack collection, ADR-0087 renames and retirements, the two authoring guards, one name per source #37304. It names B and C as not taken, as the Step 0 record 7191722341 put them, and says that only that part of the point is ruled.
  2. Under point 6: the same note for the holder of a source registered in code.
  3. The Status line gains an appended Amended (2026-11-26, #37545) clause, as each earlier amendment has one. The old Status text is a strict prefix of the new text.

In 0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md:

  1. Under the cross-reference of 2026-11-25, which says the holder of a registration in code "stays open there": one dated cross-reference line (and the empty quote line that separates the two). It says the holder was ruled on 2026-11-26, quotes the record's statement of A, and points at the note under point 6 of the ADR-0150 addendum. That record's Status line lists no cross-reference, so it is left as it is.

No ruled sentence is rewritten in either record. In ADR-0150, points 4 and 6 keep their "(open)" headings and the paragraph above them keeps "Points 4 to 7 are open": the notes sit beneath, in the form the record already uses for a dated note inside a list (the notes of 2026-11-10).

What the notes record, in the ruling record's words:

  • Point 6: "A knowledge source registered in code belongs to no package. It is read as the environment's own source and takes the one package-less slot of its name, keeping its bare key, bare face and existing index. The duplicate refusal compares (package, name)."
  • Point 4, last part: "Code names one of two packages' same-named sources by the face (NS-NAME), read by the tool's one rule. […] No IKnowledgeService signature changes."

Tests

None. The diff is two decision records: no schema, no code, no changeset (skip-changeset: docs/adr/ ships in no package). Documents are not ablated.

Two readings stand in for a test, both at 158d4a16:

  • Every quoted span is the record's own bytes. The body of comment 7192063608 was read over REST and each of the 11 quoted spans in the four hunks (the maintainer's word, the card's question, the option text, and the statements of A) was matched against it as a substring: 11 of 11.
  • Every old line survives, in order. ADR-0150: 541 of 541 old lines found in order, 540 unchanged and the Status line extended as a strict prefix (+626 characters); two lines are added, at 197 and 200. ADR-0161: +2 / -0, so the diff removes nothing; the two added lines are 221 and 222.

Acceptance notes

Verification

Read first, by risk:

  1. ADR-0161, line 222 (the new cross-reference line): its first sentence and "Point 3 above is read with it" are my wording.
  2. ADR-0150, line 200 (the note under point 6) and line 197 (the note under point 4): the "Not taken" clauses and the closing sentence of line 197 are my wording.
  3. ADR-0150, line 3 (Status): the appended clause from "· Amended (2026-11-26" to the end.

Two-minute check: node scripts/check-adr-symbol-anchors.mjs. Expected last line: ✅ check-adr-symbol-anchors: 4236 anchors across 163 records resolve.

Local gates at 158d4a16: node scripts/pm/dispatch-gates.mjs --commands derives 21 commands for this diff, all 21 ran with exit 0, and --ran answers 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN. The same 21 had run at 4d432c9b, the head this PR opened with. The rest of the farm is CI's.

The 21 derived commands and their exit codes at 158d4a1
node scripts/check-adr-links.mjs :: exit 0
node scripts/check-adr-links.mjs --self-test :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:adr-index :: exit 0
pnpm check:adr-symbol-anchors :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-prior-rulings :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:watch-hint-literal :: exit 0

At 4d432c9b the doc-formula gate answered exit 3 (PREREQUISITE NOT MET: @objectstack/formula not built) on its first run. After turbo run build --filter=@objectstack/formula --filter=@objectstack/lint under the verify lock (VERDICT command-exit 0) it answered exit 0, there and at this head.

Verdict lines of the gates that read ADR text, at 158d4a1
✅ check-adr-links: 1238 relative link destination(s) under docs/adr/ resolve
✅ check-adr-symbol-anchors: 4236 anchors across 163 records resolve
adr-index --report: OK — docs/adr/README.md is current, every record parsed, self-test 60 assertions green.
overlap-check: VERDICT clean exit 0 (against origin/main c385d3bd16 and 0 PR heads)

The ADR-0150 list renders as one ordered list of seven items with the two notes nested under items 4 and 6, and the ADR-0161 quote renders as one quote of two paragraphs (parsed with marked from the workspace's own dependencies).


Generated by Claude Code

…ed in code and on how code names a package's source

Two dated notes under "Past the ruling's words" in the knowledge_source
addendum quote the ruling record for point 6 and for the last part of
point 4, and the Status line gains the amendment clause. No ruled
sentence is rewritten: the old Status text is a strict prefix of the
new one, and every other line is unchanged.

Claude-Session: https://claude.ai/code/session_01Utp6CYAx8baivbFS2iBXQc
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 26, 2026
@github-actions github-actions Bot added size/xs documentation Improvements or additions to documentation labels Nov 26, 2026
… a registration in code

One dated cross-reference line under the one of 2026-11-25, which says
the holder of a registration in code "stays open there". It quotes the
ruling record and points at the note under point 6 of the ADR-0150
addendum. No sentence is rewritten and no line is removed.

Claude-Session: https://claude.ai/code/session_01Utp6CYAx8baivbFS2iBXQc
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head 158d4a1 · 2026-11-26T14:18Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 158d4a16756ed46642facd7f6cc7b03eb36320be
Local-runs: none
Scope: docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md, docs/adr/0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md + none
Security-touching: no

PR #37576 for card #37545. Net diff against main (merge base c385d3bd16): two files, +5 / -1, four hunks. Read: the card and its eight comments, the PR body, ruling 7192063608 and Step 0 record 7191722341 on #37304, and the check-runs on the head.

① Derived judgments

  • No accept-set and no public surface changes: the diff is prose in two decision records. Right.
  • Check-runs on the head: none failed. Lint · docs & code guards, Check Documentation Links, Lint & Repo Gates, PR-body guards and Governed Surface Queue Guard are success; the rest are success or expected skips.
  • Old text survives. ADR-0150: every old line is found in order except line 3 (Status), and the old Status text is a strict prefix of the new one (+626 characters, starting at · **Amended** (2026-11-26). The two other added lines are 197 and 200. ADR-0161: +2 / -0, lines 221 and 222.
  • Quoted spans: 11 of 11 are byte-for-byte substrings of the stored body of 7192063608. Status clause: 「两处都选 A」. Lines 197 and 200: the card's question, 「两处都选 A」, the option text, and the statement of A for point 4 (311 characters) and point 6 (564 characters). ADR-0161 line 222: 「两处都选 A」 and the first five sentences of the point 6 statement (484 characters). The two other double-quoted spans are the addendum's own heading, "Past the ruling's words", not the ruling.

② Semver level

skip-changeset is right: docs/adr/ ships in no package and no package file changes. Check Changeset is skipped as expected. Clause-②: no is right: nothing published is added, narrowed or widened, and it matches the claim. Metadata-protocol: none likewise.

③ Boundary flags

  • open_questions is empty in both os-dev reports (7193979768, 7194304327).
  • The first report's out-of-scope finding (ADR-0161's cross-reference still said the holder "stays open") is answered by claim amend 7194011874 and by line 222 of this diff.
  • The Status clause and the ADR-0161 file go past the card's first wording. Both are covered by the owning zone's claim amends (7193564758, 7194011874).
  • The ruling says the addendum records the answers "in the same PR" as the build. This card carries them instead; the card's filing gate gives the reason (an implementation card's surface excludes docs/adr/). The text is the same either way. Accepted.
  • SQL push-down: not applicable, no code.

④ Design judgment

No must-fix, no should-fix.

ADR-0150.

  • Point 6 note: records A. The full statement is quoted: no package, the environment's own package-less slot, bare key, face and index kept, duplicate refusal on (package, name). It matches the ruling and option A of the Step 0 record.
  • Point 4 note: records A for the last part. The quote gives the NS-NAME face, the tool's one rule, and "No IKnowledgeService signature changes". It matches the ruling.
  • The author's own sentences add nothing. Both "Not taken" clauses name B and C by the Step 0 record's titles ("a packageId option beside the name", "the index key"; "the platform's holder", "the package of the plugin that registers it"), and the ruling says B and C are not taken on both points. "Only that part is ruled; the rest of this point stays 3a's to state" follows the ruling's own heading ("Point 4, last part") and the paragraph above the list.
  • The Status clause's summary sentence is also the author's. It joins the first sentence of each statement and drops only "(NS-NAME), read by the tool's one rule". No shift.
  • Conventions: both notes use the record's quoted **Amendment note (DATE, CARD).** form, nested under their list items as the 2026-11-10 notes are. The points keep "(open)" and the paragraph above keeps "Points 4 to 7 are open". The Status clause follows the earlier · **Amended** (date, card) clauses and ends "No ruled sentence is rewritten." Dates match the ruling (2026-11-26, 12:26Z).

ADR-0161.

  • Line 222 follows the 2026-11-25 cross-reference's form, inside the same quote block. It corrects the one stale statement there ("which holder a registration in code is stays open there") without changing it.
  • Its link goes to the ADR-0150 addendum heading, the anchor the line above already uses, and the note it names sits under point 6 there. Record id and date are right.
  • "Point 3 above is read with it" holds: point 3's refusal of a second arrival is the ruling's same-slot case, and a package's source of the same name is kept, which replaces nothing.
  • It leaves out the point 4 ruling. That is right: the earlier line says K6 item 5's values are "that addendum's and row 3's to state", which is still true.
  • The Status line lists no cross-reference, so leaving it unchanged follows the 2026-11-25 precedent.

Nits, both left as accepted deviations:

  • N1 (nit) — ADR-0161 line 222 quotes the point 6 statement without its last sentence ("A bare name answers the package-less one (D3); NS-NAME answers the package's.") under the same lead, "The record states it as:". The quote ends on a sentence boundary and the dropped sentence is addressing, which ADR-0150 owns. Meaning is unchanged.
  • N2 (nit) — the point 4 note says "Only that part is ruled", and its quote also fixes sourceId on the hits search returns, which the point's own last clause does not name. The ruling scopes it the same way, and the quote is in the note, so nothing is lost.

Implemented-by: claude/project-thread-2ly8ve
Reviewed-by: session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

维护者速读

席位意见:ACCEPT。忠实记录你的裁定,两个 nit 不影响含义。

席位核对

Head-sha: 158d4a16756ed46642facd7f6cc7b03eb36320be
ACCEPT — L1, seat repo:objectstack#5

  1. Shape: draft against main. docs/adr/0150 and docs/adr/0161, +5/−1. GOVERNED, Tier H. skip-changeset, Clause-②: no, not security-touching.
  2. Premise: this records ruling 7192063608 (point 6 → A, point 4 → A) as dated amendment notes, in the form each ADR already uses. ADR-0150's Status keeps its old text as a strict prefix.
  3. Gates: contract record 7194721610 (CONTRACT_REVIEW_TIER, verified on the transcript) reads PASS, with no must-fix and no should-fix. CI on this head: 27 success, 22 expected skip, 0 failed.
  4. Accepted deviations: N1 (ADR-0161 quotes point 6 without its last sentence), N2 ("Only that part is ruled" alongside the sourceId sentence).
  5. Out of scope and where it went: none.
  6. Landing terms: Tier H. The seat adds pm:awaiting-merge and requests os-zhuang. The maintainer's approval decides; after approval the seat or the area lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Approval requested (Tier H, docs/adr/**; not security-touching). Seat ACCEPT: comment 7194736470. Contract review PASS at CONTRACT_REVIEW_TIER: comment 7194721610, Head-sha 158d4a16756ed46642facd7f6cc7b03eb36320be. After approval the seat or the area lands it.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/xs skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ADR-0150: record the maintainer's ruling on #37304 addendum points 4 and 6 (code-registered knowledge sources)

2 participants